package com.tsd.core.openweixin.model.message;


import com.tsd.core.openweixin.utils.AdapterCDATA;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * @author wudw
 */
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class LocationMessage extends WeixinMessage {

    @XmlElement(name = "Location_X")
    private Double location_X;
    @XmlElement(name = "Location_Y")
    private Double location_Y;
    @XmlElement(name = "Scale")
    private Integer Scale;
    @XmlElement(name = "Label")
    @XmlJavaTypeAdapter(AdapterCDATA.class)
    private String Label;

    public LocationMessage() {
        super();
        msgType = WeixinMessageType.LOCATION;
    }

    public Double getLocation_X() {
        return location_X;
    }


    public void setLocation_X(Double location_X) {
        this.location_X = location_X;
    }


    public Double getLocation_Y() {
        return location_Y;
    }


    public void setLocation_Y(Double location_Y) {
        this.location_Y = location_Y;
    }


    public Integer getScale() {
        return Scale;
    }


    public void setScale(Integer scale) {
        Scale = scale;
    }


    public String getLabel() {
        return Label;
    }


    public void setLabel(String label) {
        Label = label;
    }


    @Override
    public String toString() {
        return "ImageMessage{" + "location_X=" + location_X
                + ",location_Y=" + location_Y
                + ",Scale=" + Scale
                + ",Label=" + Label
                + '}';
    }

}
